﻿<%@ Application Language="C#" %>
<script RunAt="server">
    public void Application_Start(object sender, EventArgs e)
    {
        Application["So_Truy_Cap"] = 0;
        Application["So_Online"] = 0;
        Application["SoSPTren1TrangKhiPhanTrang"] = 6;
    }
    
    public void Application_End(object sender, EventArgs e)
    {
    }

    public void Application_Error(object sender, EventArgs e)
    {
    }

    public void Session_Start(object sender, EventArgs e)
    {
        Application["So_Truy_Cap"] = (int)Application["So_Truy_Cap"] + 1;
        Application["So_Online"] = (int)Application["So_Online"] + 1;

        Session["Gio_Hang"] = "";
        DataProvider x = new DataProvider();
        x.Tao_Gio_Hang();

        Session["Logged"] = 0;
        Session["UserName"] = "";
        Session["ID"] = "";
        Session["Quyen"] = 0;

        Session["TenKH"] = "";
        Session["SoTienHienTai"] = 0;
        Session["MaTheHienTai"] = "";

        Session["MaXacNhanGopY"] = "";
        Session["SoTienGioHangThanhToan"] = 0;

        Session["TrangThaiSuaDDHang"] = 0;
        Session["IDDDHangChuanBiSua"] = 0;

    }

    public void Session_End(object sender, EventArgs e)
    {
        Application["So_Online"] = (int)Application["So_Online"] - 1;
    }
       
</script>
